// pages/demo15/demo15.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    students: [
      {id: 0, name: "刚子", age: "19"},
      {id: 1, name: "强子", age: "18"},
      {id: 2, name: "李子", age: "20"},
    ],
    studentName: [],
  },
  // 复选框选中事件
  getStudents(e){
    console.log(e)
    this.setData({
      studentName: e.detail.value
    })
  }
})